package com.itheima.mapper;

import com.itheima.dto.ClazzAddDto;
import com.itheima.dto.ClazzQueryDto;
import com.itheima.dto.EmpQueryDto;
import com.itheima.pojo.Clazz;
import com.itheima.vo.ClazzVo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ClazzMapper {

    List<ClazzVo> query(ClazzQueryDto dto);

    @Select("select * from clazz order by update_time desc ")
    List<Clazz> selectall();

    void insert(ClazzAddDto dto);

    @Delete("delete from clazz where id=#{id}")
    void deleteid(Integer id);

    @Select("select * from clazz where id=#{id}")
    Clazz seleteid(Integer id);

    void update(Clazz clazz);
}
